package com.rabbiter.bms.mapper;


import com.rabbiter.bms.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
public interface TscaleMapper {

        int selectUploadCount(UploadTable table);
        int selectCountBySearch(Map<String, Object> searchParam);
    List<TScaleDTO> selectBySearch(Map<String, Object> searchParam);
        int insertUploadTable(UploadTable table);
        int deleteUploadTable(UploadTable table);

        List<Questionnaire> selectQuestionnaireByFormId(AnswerSheet answerSheet);
        int insertResult(AnswerSheet answerSheet);
        int getCountQuestionnaire(@Param("scaleId") String scaleId);
        List<AnswerType> getAnswerType();
        List<Form> getForms(@Param("token")String token);
        List<TProgram> selectProgramBySearch(Map<String, Object> searchParam);
        int selectCountProgramBySearch(Map<String, Object> searchParam);
        int insertTProgramScale(Map<String, Object> tProgramScale);
        int insertTProgram(TProgram tProgram);
        int deleteTProgram(@Param("id") String id);
        List<String> getTItemsBh(@Param("id") String id);
        int insertTestScale(AnswerSheet answerSheet);
        int deleteTempAnswerSheet(AnswerSheet answerSheet);
        List<TScaleDTO> selectTpByList(List<String> ids);
        List<TScaleTypeTree> selectTsTree();
        int updateTProgram(TProgram tProgram);
        int updateTProgramScale(Map<String, Object> tProgramScale);
        Ryxx selectRyxxById(@Param("id") String id);
        List<Ryxx> getRyxx();
        int insertRyxx(Ryxx ryxx);
        String getRyxxMaxBh();
        List<Ryxx> searchRyxxByParam(Map<String,Object> ryxx);
        int updateRyxx(Ryxx ryxx);
        int insertPreProgram(Map<String,Object> param);
        int deletePreProgram(String param);
        Integer isTesting(@Param("id") String id);
        List<Map<String,Object>> getItems(@Param("scaleId")String scaleId);
        int TProgramStatus(Map<String,Object> param);
//    int deleteByPrimaryKey(Integer bookid);
//
//    int insert(BookInfo record);
//
//    int insertSelective(BookInfo record);
//
//    BookInfo selectByPrimaryKey(Integer bookid);
//
//    int updateByPrimaryKeySelective(BookInfo record);
//
//    int updateByPrimaryKey(BookInfo record);
//
//    List<BookInfo> selectAllByLimit(@Param("begin") Integer begin, @Param("size") Integer size);
//
//    Integer selectCount();
//
//    int selectCountBySearch(Map<String, Object> searchParam);
//
//    List<TScaleDTO> selectBySearch(Map<String, Object> searchParam);
//
//    List<BookInfo> selectAll();
//
//    int selectCountByType(Map<String, Object> map);
//
//    List<BookInfo> selectByType(Map<String, Object> map);
}
